package com.wanmait.wisdom.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wanmait.wisdom.entity.Complaint;
import com.wanmait.wisdom.entity.Rapair;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * Created by Mybatis Generator 2024/05/01
 */
@Mapper
public interface RapairMapper extends BaseMapper<Rapair> {
    int deleteByPrimaryKey(Integer id);

    int insert(Rapair record);

    int insertSelective(Rapair record);

    Rapair selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Rapair record);

    int updateByPrimaryKey(Rapair record);

    Long selectUnFinishedCount();
    Long selectFinishedCount();

    Rapair selectByID(Integer id);

    List<Rapair> searchRapairByCondition(@Param("rapair") Rapair rapair, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
}
